/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.adapter;

import com.aeky.adapter.chicken.Chicken;
import com.aeky.adapter.duck.Duck;

/**
 * 鸭子转换为鸡的适配器类
 * 
 * @author aeky
 */
public class DuckToChickenAdapter implements Chicken {

    private Duck duck;

    public DuckToChickenAdapter(Duck duck) {
        this.duck = duck;
    }

    @Override
    public void quack() {
        duck.quack();
    }

    @Override
    public void fly() {
        duck.fly();
    }

}
